<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<!-- 下拉框 -->
<link rel="stylesheet" href="/static/ace/css/chosen.css" />
<!-- 日期框 -->
<link rel="stylesheet" href="/static/ace/css/datepicker.css" />
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<link rel="stylesheet" href="/layui/css/layui.css">
<script src="/layui/layui.js"></script>
<script src="/static/ace/js/bootbox.js"></script>
<!-- ace scripts -->
<script src="/static/ace/js/ace/ace.js"></script>
<!-- 下拉框 -->
<script src="/static/ace/js/chosen.jquery.js"></script>
<!-- 日期框 -->
<script src="/static/ace/js/date-time/bootstrap-datepicker.js"></script>
<!--提示框-->
<script type="text/javascript" src="/static/js/jquery.tips.js"></script>
<style type="text/css">
.layui-table-tips-main {
	display: none
}

.layui-table-tips-c {
	display: none
}
</style>
</head>
<body class="layui-layout-body"
	style="overflow-y: auto; overflow-x: hidden;">
	<form class="layui-form" style="padding: 10px 50px 10px 10px;">
		<div class="layui-form-item">
			<div class="layui-row">
				<div class="layui-col-md4">
					<label class="layui-form-label">用户姓名</label>
					<div class="layui-input-block">
						<input type="text" name="name" id="name" lay-verify="required"
							placeholder="用户姓名" autocomplete="off" class="layui-input"
							th:value="${user.name}" readonly="readonly">
					</div>
				</div>
				<div class="layui-col-md4">
					<label class="layui-form-label">用户电话</label>
					<div class="layui-input-block">
						<input type="text" name="phone" id="phone" lay-verify="required"
							placeholder="用户电话" autocomplete="off" class="layui-input"
							th:value="${user.phone}" readonly="readonly">
					</div>
				</div>
				<div class="layui-col-md4">
					<label class="layui-form-label">用户邮箱</label>
					<div class="layui-input-block">
						<input type="text" name="email" id="email" lay-verify="required"
							placeholder="用户邮箱" autocomplete="off" class="layui-input"
							th:value="${user.email}" readonly="readonly">
					</div>
				</div>
			</div>
		</div>

		<div class="layui-form-item">
			<div class="layui-col-md4">
				<label class="layui-form-label">头像地址</label>
				<div class="layui-input-block">
					<input type="text" name="img" id="img" lay-verify="required"
						placeholder="用户年龄" onkeyup="num(this)" autocomplete="off"
						class="layui-input" th:value="${user.img}" readonly="readonly">
				</div>
			</div>

			<div class="layui-col-md4">
				<label class="layui-form-label">用户年龄</label>
				<div class="layui-input-block">
					<input type="text" name="age" id="age" lay-verify="required"
						placeholder="用户年龄" onkeyup="num(this)" autocomplete="off"
						class="layui-input" th:value="${user.age}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4">
				<label class="layui-form-label">用户性别</label>
				<div class="layui-input-block">
					<input type="text" name="sex" id="sex" lay-verify="required"
						placeholder="用户性别" onkeyup="num(this)" autocomplete="off"
						class="layui-input"
						th:value="${user.sex==0?'保密':user.sex==1?'男':'女'}"
						readonly="readonly">
				</div>
			</div>

		</div>

		<div class="layui-form-item">
			<div class="layui-col-md4" th:if="${user.jurisdiction==0}">
				<label class="layui-form-label">用户年级</label>
				<div class="layui-input-block" id="grade">
					<input type="text" name="school" id="school" lay-verify="required" placeholder="用户年级" 
					onkeyup="num(this)" autocomplete="off" class="layui-input"
					th:value="${user.grade==0?'未设置':user.grade==1?'初三以下':user.grade==2?'初三'
					:user.grade==3?'高一':user.grade==4?'高二':user.grade==5?'高三':'高三以上'}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4" th:if="${user.jurisdiction==1}">
				<label class="layui-form-label">用户学历</label>
				<div class="layui-input-block" id="grade">
					<input type="text" name="school" id="school" lay-verify="required" placeholder="用户学历" 
					onkeyup="num(this)" autocomplete="off" class="layui-input"
					th:value="${user.educationbackground}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4"  th:if="${user.jurisdiction==0}">
				<label class="layui-form-label">用户学校</label>
				<div class="layui-input-block">
					<input type="text" name="school" id="school" lay-verify="required"
						placeholder="用户学校" onkeyup="num(this)" autocomplete="off"
						class="layui-input" th:value="${user.school}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4"  th:if="${user.jurisdiction==1}">
				<label class="layui-form-label">毕业院校</label>
				<div class="layui-input-block">
					<input type="text" name="school" id="school" lay-verify="required"
						placeholder="毕业院校" onkeyup="num(this)" autocomplete="off"
						class="layui-input" th:value="${user.educationbackground}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4">
				<label class="layui-form-label">用户生日</label>
				<div class="layui-input-block">
					<input type="text" name="brithday" id="brithday"
						lay-verify="required" placeholder="用户生日" onkeyup="num(this)"
						autocomplete="off" class="layui-input" th:value="${user.brithday}"
						readonly="readonly">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md4">
				<label class="layui-form-label">注册时间</label>
				<div class="layui-input-block">
					<input type="text" name="createTime" id="createTime"
						lay-verify="required" placeholder="注册时间" onkeyup="num(this)"
						autocomplete="off" class="layui-input"
						th:value="${user.createtime}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4">
				<label class="layui-form-label">用户类型</label>
				<div class="layui-input-block">
					<input type="text" name="jurisdiction" id="jurisdiction"
						lay-verify="required" placeholder="用户类型" onkeyup="num(this)"
						autocomplete="off" class="layui-input"
						th:value="${user.jurisdiction==0?'学生':'教师'}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4">
				<label class="layui-form-label">是否申述</label>
				<div class="layui-input-block">
					<input type="text" name="isstate" id="isstate"
						lay-verify="required" placeholder="否" onkeyup="num(this)"
						autocomplete="off" class="layui-input"
						th:value="${user.isstate==0}?'否':'是'" readonly="readonly">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-col-md4">
				<label class="layui-form-label">是否被举报</label>
				<div class="layui-input-block">
					<input type="text" name="isreport" id="isreport"
						lay-verify="required" placeholder="是否被举报" onkeyup="num(this)"
						autocomplete="off" class="layui-input"
						th:value="${user.isreport==0?'否':'是'}" readonly="readonly">
				</div>
			</div>
			<div class="layui-col-md4">
				<label class="layui-form-label">是否被封禁</label>
				<div class="layui-input-block">
					<input type="text" name="isbanned" id="isbanned"
						lay-verify="required" placeholder="是否被封禁" onkeyup="num(this)"
						autocomplete="off" class="layui-input"
						th:value="${user.isbanned==0?'否':'是'}" readonly="readonly">
				</div>
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">个性签名</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" class="layui-textarea"
					readonly="readonly"></textarea>
			</div>
		</div>
		
		<div class="layui-form-item" th:if="${user.jurisdiction==1}">
			<div class="layui-col-md6">
				<label class="layui-form-label">身份证正面</label>
				<div class="layui-input-block">
					<img class="id_card img_sp" alt="身份证正面" onclick="showBigImage(this);" th:src="@{${user.projecturl}}+'/login/register/teacher/download/'+@{${user.idcard}}" width="270px" height="170px" name="">
				</div>
			</div>
			<div class="layui-col-md6">
				<label class="layui-form-label">毕业证照片</label>
				<div class="layui-input-block">
					<img class="school" alt="身份证正面" onclick="showBigImage(this);" th:src="@{${user.projecturl}}+'/login/register/teacher/download/'+@{${user.diploma}}" width="270px" height="170px" name="">
				</div>
			</div>
		</div>
		<div class="layui-form-item" th:if="${user.jurisdiction==1}">
			<div class="layui-col-md6">
				<label class="layui-form-label">学位证照片</label>
				<div class="layui-input-block">
					<img class="degree" alt="学位证照片" onclick="showBigImage(this);" th:src="@{${user.projecturl}}+'/login/register/teacher/download/'+@{${user.degree}}" width="270px" height="170px" name="">
				</div>
			</div>
			<div class="layui-col-md6">
				<label class="layui-form-label">教师资格证</label>
				<div class="layui-input-block">
					<img class="teacher" alt="教师资格证" onclick="showBigImage(this);" th:src="@{${user.projecturl}}+'/login/register/teacher/download/'+@{${user.teachercertification}}" width="270px" height="170px" name="">
				</div>
			</div>
		</div>
		
		
		<br><br>
	</form>
	<script type="text/javascript">
	function showBigImage(e) {
	    layer.open({
	        type: 1,
	        title: false,
	        closeBtn: 0,
	        shadeClose: true, //点击阴影关闭
	        area: [$(e).width + 'px', $(e).height + 'px'], //宽高
	        content: "<img src=" + $(e).attr('src') + " style='max-width:1000px;'/>"
	    });
	}
	</script>
	<script>
		layui
				.use(
						[ 'form', 'layedit', 'laydate' ],
						function() {
							var form = layui.form, layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate;
						});
		layui.use('element', function(){
			  var element = layui.element;
			});
	</script>
	<script type="text/javascript">
		$(top.hangge());//关闭加载状态
	</script>


</body>
</html>